package com.h.blog.service;

import com.h.blog.mapper.BlogInfoMapper;
import com.h.blog.pojo.dataobject.BlogInfo;
import com.h.blog.pojo.request.AddBlogRequest;
import com.h.blog.pojo.request.UpdateBlogRequest;
import com.h.blog.pojo.response.BlogInfoResponse;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    BlogInfo getBlogInfo(Integer blogId);

    Boolean add(AddBlogRequest addBlogRequest);

    Boolean update(UpdateBlogRequest updateBlogRequest);

    Boolean delete(Integer blogId);
}
